// Decompiled by Jad v1.5.8g. Copyright 2001 Pavel Kouznetsov.
// Jad home page: http://www.kpdus.com/jad.html
// Decompiler options: packimports(3) 

package com.nnee.p_pr.p_activity;

import android.content.Context;
import android.text.*;
import android.widget.Button;
import android.widget.EditText;
import com.nnee.p_l.p_b.cls_b;

// Referenced classes of package com.nnee.p_pr.p_activity:
//            ArticleGalleryActivity

class cls_cc
    implements TextWatcher
{

	cls_cc(cls_ArticleGalleryActivity articlegalleryactivity)
    {   super();
        a = articlegalleryactivity;
     
    }

    public void afterTextChanged(Editable editable)
    { Object obj;
    int j;
    Context context;
    Context context1;
    Object aobj[];
    boolean flag;
        int i = editable.length();
        if(i > 0)
        {
            Button button = cls_ArticleGalleryActivity.m(a);
           
           
            if(!TextUtils.isEmpty(cls_ArticleGalleryActivity.i(a).getEditableText().toString().trim()))
                flag = true;
            else
                flag = false;
            button.setEnabled(flag);
        } else
        {
            cls_ArticleGalleryActivity.m(a).setEnabled(false);
        }
        obj = a.a(-1, cls_ArticleGalleryActivity.D, null);
        if(obj != null)
        {
            j = ((Integer)obj).intValue();
            if(i > j)
            {
                cls_ArticleGalleryActivity.i(a).setText(cls_ArticleGalleryActivity.i(a).getEditableText().subSequence(0, j));
                cls_ArticleGalleryActivity.i(a).setSelection(j);
                context = cls_ArticleGalleryActivity.a(a);
                context1 = cls_ArticleGalleryActivity.a(a);
                aobj = new Object[1];
                aobj[0] = Integer.valueOf(j);
                cls_b.a(context, context1.getString(0x7f0a00a5, aobj));
            }
        }
    }

    public void beforeTextChanged(CharSequence charsequence, int i, int j, int k)
    {
    }

    public void onTextChanged(CharSequence charsequence, int i, int j, int k)
    {
    }

    final cls_ArticleGalleryActivity a;
}
